<template>
  <!-- 规格 -->
  <div v-if="column == 'goodsInventory'">
    <div v-if="row.goodsSpecList.length>0">
      <div v-for="(item, index) in row.goodsSpecList" v-if="index<2">
        <span v-html="item.value"></span>
      </div>
      <span v-if="row.goodsSpecList.length>2">
        <el-tooltip placement="right">
          <div slot="content" v-for="(item, index) in row.goodsSpecList">
            <span v-html="item.value"></span>
          </div>
          <el-button type="warning" size="mini">查看全部</el-button>
        </el-tooltip>
       </span>
    </div>
    <div v-else>
      <span> - </span>
    </div>
  </div>
  <!-- 价格 -->
  <div v-else-if="column == 'goodsIntegral'">
    <div v-if="row.goodsSpecList.length>0">
      <div v-for="(item, index) in row.goodsSpecList" v-if="index<2">
        <span v-html="item.goodsIntegral"></span>
      </div>
      <span v-if="row.goodsSpecList.length>2">
        <el-tooltip placement="right">
          <div slot="content" v-for="(item, index) in row.goodsSpecList">
            <span v-html="item.goodsIntegral"></span>
          </div>
          <el-button type="warning" size="mini">查看全部</el-button>
        </el-tooltip>
       </span>
    </div>
    <div v-else>
      <span v-html="row.goodsIntegral"></span>
    </div>
  </div>
  <!-- 拼团价格 -->
  <div v-else-if="column == 'virtualGoodsIntegral'">
    <div v-if="row.goodsClassify == '01' && row.isGroupGoods == '是'">
      <div v-if="row.goodsSpecList.length>0">
        <div v-for="(item, index) in row.goodsSpecList" v-if="index<2">
          <span v-html="item.groupIntegral"></span>
        </div>
        <span v-if="row.goodsSpecList.length>2">
        <el-tooltip placement="right">
          <div slot="content" v-for="(item, index) in row.goodsSpecList">
            <span v-html="item.groupIntegral"></span>
          </div>
          <el-button type="warning" size="mini">查看全部</el-button>
        </el-tooltip>
       </span>
      </div>
      <div v-else>
        <span v-html="row.groupIntegral"></span>
      </div>
    </div>
    <div v-else-if="row.goodsClassify == '02' && row.isGroupGoods == '是'">
      <span v-html="row.virtualGoodsIntegral"></span>
    </div>
    <div v-else="row.isGroupGoods == '否'">
      <span> - </span>
    </div>
  </div>
</template>

<script>
    export default {
        name: "virtualGoodsIntegral",
        props: ['row','column']/*,
        data:function () {
          return {
            message:''
          }
        }*/

    }
</script>

<style scoped>

</style>
